home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / libsrc / c / lib / modfl.s < prev    next >
Encoding:
Text File  |  1994-07-18  |  307 b   |  22 lines

  1.     .text
  2.     .globl _modfl
  3. _modfl:
  4.     pushl %ebp
  5.     movl %esp,%ebp
  6.     subl $4,%esp
  7.     fldt 8(%ebp)
  8.     movl 20(%ebp),%eax
  9.     fnstcw -2(%ebp)
  10.     movw -2(%ebp),%dx
  11.     orb $0x0c,%dh
  12.     movw %dx,-4(%ebp)
  13.     fldcw -4(%ebp)
  14.     fld %st(0)
  15.     frndint
  16.     fldcw -2(%ebp)
  17.     fld %st(0)
  18.     fstpt (%eax)
  19.     fsubrp %st,%st(1)
  20.     leave
  21.     ret
  22.